package com.silverbox.shopper.mapper;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.Order;

public interface OrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    
    /**
	 * 获取订单序号
	 * @param storeId
	 * @param orderType
	 * @return
	 */
	Integer updateAndGetOrderSeq(@Param("storeId") Integer storeId, @Param("orderType") Integer orderType);
}